package com.yssw.account.domain;

import com.yssw.common.annotation.Excel;
import com.yssw.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 账户信息对象 account_table
 *
 * @author yssw
 * @date 2023-04-04
 */
public class AccountTable extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 名称
     */
    @Excel(name = "名称")
    private String name;

    /**
     * 编号
     */
    @Excel(name = "编号")
    private String serialNo;

    /**
     * 期初金额
     */
    @Excel(name = "期初金额")
    private BigDecimal initialAmount;

    /**
     * 当前余额
     */
    @Excel(name = "当前余额")
    private BigDecimal currentAmount;

    /**
     * 启用
     */
    private Integer enabled;

    /**
     * 排序
     */
    private String sort;

    /**
     * 是否默认
     */
    private Integer isDefault;

    /**
     * 删除标记，0未删除，1删除
     */
    private String delFlag;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setSerialNo(String serialNo) {
        this.serialNo = serialNo;
    }

    public String getSerialNo() {
        return serialNo;
    }

    public void setInitialAmount(BigDecimal initialAmount) {
        this.initialAmount = initialAmount;
    }

    public BigDecimal getInitialAmount() {
        return initialAmount;
    }

    public void setCurrentAmount(BigDecimal currentAmount) {
        this.currentAmount = currentAmount;
    }

    public BigDecimal getCurrentAmount() {
        return currentAmount;
    }

    public void setEnabled(Integer enabled) {
        this.enabled = enabled;
    }

    public Integer getEnabled() {
        return enabled;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    public String getSort() {
        return sort;
    }

    public void setIsDefault(Integer isDefault) {
        this.isDefault = isDefault;
    }

    public Integer getIsDefault() {
        return isDefault;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("serialNo", getSerialNo())
                .append("initialAmount", getInitialAmount())
                .append("currentAmount", getCurrentAmount())
                .append("remark", getRemark())
                .append("enabled", getEnabled())
                .append("sort", getSort())
                .append("isDefault", getIsDefault())
                .append("delFlag", getDelFlag())
                .toString();
    }
}
